
package com.cainli.swingworker;

/**
 * 冲突检测规则
 * 
 *
 */
public interface SchedulingRule {

    /**
     * 用来判断是否冲突，次方法必须能够自反，即 
     * a.isConflicting(b) == b.isConfliction(a);
     * 
     * @param rule 目标规则
     * @return 如果冲突，则返回ture
     */
    public boolean isConflicting(SchedulingRule rule);

}